﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PagedList<SearchResultProduct>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%: Html.Partial("Sidebar") %>
    <div id="main">
        <div class="main-block">
            <h2 class="title">
                <%:"Search".Localize() %></h2>
            <div class="main-block-content clearfix">
                <%: Html.Partial("SortBy") %>
                <% if (this.Model.TotalItemCount > 0)
                   {
                       foreach (var i in this.Model)
                       {
                %>
                <div class="product-item">
                    <a href="<%: i.ProductUrl %>">
                        <img src="<%: i.Thumbnail %>" alt="" />
                    </a><a href="<%: i.ProductUrl %>">
                        <%: i.Name %></a> <span>
                            <%: i.Price %>
                        </span>
                </div>
                <%}
   } %>
                <div class="pagination">
                    <%: Html.FrontPager(Model) %>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Breadcrumb" runat="server">
    <%: Html.Partial("Breadcrumb") %>
</asp:Content>
